<?php if($idBefore != 0){ ?>
    <tr>
        <td></td>
        <td><div class="row"><div class="col-lg-4"><img class="img-responsive" src="<?php echo base_url()."assets/images/folder.png"; ?>"></div><div class="col-lg-8"><a style="cursor: pointer" onclick="getTableCategory('<?php echo $objParentCategoryList->id ?>');">...</a></div></div></td>
        <td></td>
        <td></td>
        <td></td>
    </tr>
<?php } ?>
<?php if(empty($info)){echo "<tr><td></td><td><i>Hiện không có danh mục trong thư mục này.</i></td><td></td><td></td><td></td></tr>";} else{ ?>
    <?php $i = 1; foreach($info as $objParentCategoryList){ ?>
        <tr>
            <td><?php echo $i ?></td>
            <?php if($objParentCategoryList->id != 1){ ?>
            <td><div class="row"><div class="col-lg-4"><img class="img-responsive" src="<?php echo base_url()."assets/images/folder.png"; ?>"></div><div class="col-lg-8"><a style="cursor: pointer" onclick="getTableCategory('<?php echo $objParentCategoryList->id ?>');"><?php echo $objParentCategoryList->name ?></a></div></div></td>
            <?php }else{ ?>
            <td><div class="row"><div class="col-lg-4"><img class="img-responsive" src="<?php echo base_url()."assets/images/folder.png"; ?>"></div><div class="col-lg-8"><a style="cursor: pointer"><?php echo $objParentCategoryList->name ?></a></div></div></td>
            <?php } ?>
            <td><?php echo $objParentCategoryList->short_description ?></td>
            <td><?php if($objParentCategoryList->active == 1){echo "Hiển thị";} else{echo "Không hiển thị";} ?></td>
            <td>
                <a style='cursor: pointer' class='btn btn-warning btn-xs pull-right <?php if($objParentCategoryList->id == 1){echo "disabled";} ?>' onclick="updateCategoryNews('<?php echo $objParentCategoryList->id ?>')">
                    <span class='glyphicon glyphicon-pencil'></span>
                </a>
                <a class='btn btn-danger btn-xs pull-right <?php if($objParentCategoryList->id == 1){echo "disabled";} ?>' onclick="deleteCategoryNews('<?php echo $objParentCategoryList->id ?>')"><span class='glyphicon glyphicon-remove'></span></a>
            </td>
        </tr>
        <?php $i++; } ?>
<?php } ?>